package com.ecommerce.onion.application.response;

import java.util.UUID;

/**
 * @packageName: application.response（应用.响应）
 * @className: OrderResponse(订单响应)
 * @description: 订单响应
 * @author: luds
 * @version: v1.0
 * @date: 2021-05/12
 */
public class OrderResponse {
    /**
     * 订单ID
     */
    private final UUID orderId;
    /**
     * 产品ID
     */
    private final UUID productId;

    /**
     * 由订单ID和产品ID构建订单响应
     * @param orderId       订单ID
     * @param productId     产品ID
     */
    public OrderResponse(final UUID orderId,final UUID productId) {
        this.orderId = orderId;
        this.productId = productId;
    }

    /**
     * 获取订单ID
     * @return              订单ID
     */
    public UUID getOrderId() {
        return this.orderId;
    }

    /**
     * 获取产品ID
     * @return              产品ID
     */
    public UUID getProductId() {
        return this.productId;
    }
}
